package cn.yunyichina.provider.pay.thread;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import cn.yunyichina.provider.framework.data.SpringContextHandler;
import cn.yunyichina.provider.pay.service.FinanceService;

/**
 * his账单及平台流水对账线程
 * Created by JoeZ on 2016/11/20.
 */
public class CreateBillRunnable implements Runnable {

    private Logger logger = LoggerFactory.getLogger(CreateBillRunnable.class);


    private FinanceService financeService = SpringContextHandler.getBean(FinanceService.class);

    private String strJson;


    public CreateBillRunnable(String strJson) {
        this.strJson = strJson;
    }

    @Override
    public void run() {
        try {
			financeService.createBill(strJson);
		} catch (Exception e) {
			logger.error("生成对账错误",e);
		}
    }

}
